<!-- BEGIN PAGE CONTENT-->
<?=form_open('/usermanage/withdraw/withdrawRefusePopup/'.$withdrawInfo->id.'/'.$withdrawInfo->update_time, Array('class'=>'form-horizontal', 'role'=>'form', 'id'=>'passChangeForm', 'data-category-id'=>$withdrawInfo->id, 'name' => 'changePassForm'))?>
	<div class="portlet-body form">
		<input type="hidden" id="update_time" name="update_time" value="<?=set_value('update_time', $withdrawInfo->update_time)?>" />
		<div class="form-body">
			<div class="form-group">
				<label class="col-xs-3 control-label">提款单号</label>
				<div class="col-xs-4" style="padding: 6px 12px;"><?php echo $withdrawInfo->no; ?></div>
			</div>
			<div class="form-group">
				<label class="col-xs-3 control-label">金额</label>
				<div class="col-xs-4" style="padding: 6px 12px;"><?php echo $withdrawInfo->amount; ?></div>
			</div>
			<?=edit_form_dropdown('refuse_type',array('-2'=>'拒绝提款并按指定金额返回充值','-3'=>'直接拒绝提款申请'),set_value('refuse_type',isset($_POST['refuse_type'])?$_POST['refuse_type']:''),'拒绝提款方式')?>
			<?=edit_form_input('set_amount',set_value('set_amount',isset($_POST['set_amount'])?$_POST['set_amount']:''),'设定返回充值金额','style="width:150%;"')?>
			<?=edit_form_textarea('note',set_value('note',''),'备注','style="width:150%;"')?>
		</div>
		<div class="modal-footer">
			<button type="button" data-dismiss="modal" class="btn default">关闭</button>
			<button type="submit" class="btn green">保存</button>
		</div>
	</div>
<?=form_close()?>

<script type="text/javascript">
	jQuery(document).ready(function() {   
	   var input_set_amount = $("input[name='set_amount']");
	   $("select[name='refuse_type']").change(function(){
			if($(this).val() == '-3'){	//直接拒绝提款申请
				input_set_amount.attr('disabled','disabled');
				input_set_amount.val('');
			}else{
				input_set_amount.removeAttr('disabled');
			}
	   });
	});
</script>
<style type="text/css">
	.help-block{
		margin-bottom: 0px;
		margin-top: 0px;
	}
</style>


